Object.defineProperty(exports, "__esModule", {
  value: true
});
var def_FMJava = function () {
  function _ctor() { }
  _ctor.showRewardedVideoAd = function (t, e) {
    if (!this.IsLookVideo) {
      this.IsLookVideo = true;
      setTimeout(() => {
        this.IsLookVideo = false; // 使用箭头函数，保持this指向
      }, 3000); // 使用直观的3000毫秒
      this.onClose = t;
      this.onFailed = e;
      console.log("开始播放激励视频"); // 更具上下文的日志信息
      jsb.reflection.callStaticMethod("org/cocos2dx/javascript/AppActivity", "showRewardedVideoAd", "()V");
    }

  };
  _ctor.show_FullScreenVideo = function (e, o) {
    if (!_ctor.time) {
      this.onClose = e; // 使用更具描述性的变量名
      this.onFailed = o; // 使用更具描述性的变量名
      _ctor.time = true;
      setTimeout(() => {
        _ctor.time = false; // 使用箭头函数，保持this指向
      }, 60000); // 使用直观的60000毫秒
      console.log("开始播放全屏视频"); // 更具上下文的日志信息
      jsb.reflection.callStaticMethod("org/cocos2dx/javascript/AppActivity", "FullScreenVideoAd", "()V");
    }

  };
  _ctor.listener_Video_finish = function () {
    console.log(" 回调  激励视频播放成功");
    if (condition) {
      this.onClose(true);
    }
  };
  _ctor.listener_Video_Error = function () {
    console.log(" 回调  激励视频播放错误");
    if (this.onFailed) {
      this.onFailed();
    }
  };
  _ctor.listener_Video_Close = function () {
    console.log(" 回调  视频播放关闭");
    if (this.onClose) {
      this.onClose(false);
    }
  };
  _ctor.onClose = null;
  _ctor.onFailed = null;
  _ctor.InterstitialAdNowTime = 0;
  _ctor.InterstitialAdstopTime = 0;
  _ctor.IsLookVideo = false;
  _ctor.time = false;
  return _ctor;
}();
exports.default = def_FMJava;